package tableGeorg;

public class Max extends Value{
	
	double first=0, second=0, result=0;
	public Max(Value a, Value b) {
		if (a==null)
		{
			a=new NullValue();
		}
		if (b==null)
		{
			b=new NullValue();
		}
		first=a.evaluate();
		second=b.evaluate();
		if (first < second) result= second;
		else result= first;
	}
    public double evaluate(){
    	return result;
    }
}



